extends _system
block content
	div.modal.fade#edit_modal(tabindex="-1" role="dialog" aria-labelledby="edit_modal" aria-hidden="true")
		div.modal-dialog.modal-lg
			div.modal-content
				div.modal-header
					button.close(type="button" data-dismiss="modal" aria-label="Close")
						span(ria-hidden="true") &times;
					h4.modal-title#edit_modal 订单详情
				div.modal-body
					form
						input.id(type="hidden", name="id")
						.form-group
							label 电话：
								input.form-control.phone(type="text", name="phone")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 姓名：
								input.form-control.name(type="text", name="name")
							div.alert.alert-danger(role="alert", hidden="hidden")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 身份证号码：
								input.form-control.idNum(type="text", name="idNum")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 密码：
								input.form-control.password(type="password", name="password")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 银行帐号：
								input.form-control.bankId(type="text", name="bankId")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 开户银行名称：
								input.form-control.bankName(type="text", name="bankName")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 银行开户人：
								input.form-control.bankPerson(type="text", name="bankPerson")
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 个人照片：
								div.thumbnail
									img.photo(style="width:200px;")
							input.photo(type="hidden", name="photo")
							input.photoFile(type="file", input="photo", name="file", accept="image/gif,image/jpeg,image/pjpeg,image/png")
							div.progress.photo(hidden='hidden')
								div.progress-bar.progress-bar-striped.active(role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100")
									span.sr-only
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 身份证正面照片：
								div.thumbnail
									img.idCardFront(style="width:200px;")
							input.idCardFront(type="hidden", name="idCardFront")
							input.idCardFrontFile(type="file", input="idCardFront", name="file", accept="image/gif,image/jpeg,image/pjpeg,image/png")
							div.progress.idCardFront(hidden='hidden')
								div.progress-bar.progress-bar-striped.active(role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100")
									span.sr-only
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 身份证背面照片：
								div.thumbnail
									img.idCardBack(style="width:200px;")
							input.idCardBack(type="hidden", name="idCardBack")
							input.idCardBackFile(type="file", input="idCardBack", name="file", accept="image/gif,image/jpeg,image/pjpeg,image/png")
							div.progress.idCardBack(hidden='hidden')
								div.progress-bar.progress-bar-striped.active(role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100")
									span.sr-only
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 工种：
							each trades in config.trades
								div.checkbox
									label
										input.trades(type="checkbox", value="#{trades.name}", name="trades")
										| #{trades.name}
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 籍贯：
								select.hometown.form-control
									each hometown in config.provinces
										option(value="#{hometown}")= hometown
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 年龄范围：
								select.ageLevel.form-control
									each ageLevel in config.ageLevel
										option(value="#{ageLevel}")= ageLevel
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 经验：
								select.empiricLevel.form-control
									each empiricLevel in config.empiricLevel
										option(value="#{empiricLevel}")= empiricLevel
							div.alert.alert-danger(role="alert", hidden="hidden")
						.form-group
							label 学历：
								select.eduLevel.form-control
									each eduLevel in config.eduLevel
										option(value="#{eduLevel}")= eduLevel
							div.alert.alert-danger(role="alert", hidden="hidden")
				div.modal-footer
	div.col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main#config
		h1.page-header #{title}
			div.btn-group.float-right(role="group")
				button.btn.btn-default.float-right(type="button" data-toggle="collapse" data-target="#filter_form" aria-expanded="false" aria-controls="collapseExample")
					span.glyphicon.glyphicon-filter(aria-hidden="true")
				button.reset-btn.btn.btn-default.float-right.search-btn(type="button")
					span.glyphicon.glyphicon-search(aria-hidden="true")
		div.content
			div.panel
				div.collapse#filter_form
					form.search-form
						input.skip(type="hidden", name="skip")
						input.limit(type="hidden", name="limit")
						.form-group
							label 雇主：
								input.form-control.employer(type="text", name="employer")
						.form-group
							label 服务员：
								input.form-control.waiter(type="text", name="waiter")
						.form-group
							label 工种：
							each trades in config.trades
									label
										input.trades(type="checkbox", value="#{trades.name}", name="trades")
										| #{trades.name}
						.form-group
							label 下单时间：
							label
								input.createTimeS(type="date", name="createTimeS")
								| -
								input.createTimeE(type="date", name="createTimeE")
						.form-group
							label 分配时间：
							label
								input.distributionTimeS(type="date", name="distributionTimeS")
								| -
								input.distributionTimeE(type="date", name="distributionTimeE")
						.form-group
							label 确认时间：
							label
								input.confirmTimeS(type="date", name="confirmTimeS")
								| -
								input.confirmTimeE(type="date", name="confirmTimeE")
						.form-group
							label 服务开始时间：
							label
								input.startTimeS(type="date", name="startTimeS")
								| -
								input.startTimeE(type="date", name="startTimeE")
						.form-group
							label 服务完成时间：
							label
								input.finshTimeS(type="date", name="finshTimeS")
								| -
								input.finshTimeE(type="date", name="finshTimeE")
						.form-group
							label 支付时间：
							label
								input.payTimeS(type="date", name="payTimeS")
								| -
								input.payTimeE(type="date", name="payTimeE")
						.form-group
							label 自动支付时间：
							label
								input.autoPayTimeS(type="date", name="autoPayTimeS")
								| -
								input.autoPayTimeE(type="date", name="autoPayTimeE")
						.form-group
							label 投诉时间：
							label
								input.complaintTimeS(type="date", name="complaintTimeS")
								| -
								input.complaintTimeE(type="date", name="complaintTimeE")
						.form-group
							label 取消时间：
							label
								input.cancelTimeS(type="date", name="cancelTimeS")
								| -
								input.cancelTimeE(type="date", name="cancelTimeE")
						.form-group
							label 撤销时间：
							label
								input.revokeTimeS(type="date", name="revokeTimeS")
								| -
								input.revokeTimeE(type="date", name="revokeTimeE")
						.form-group
							label 订单金额：
								input.form-control.paySumMin(type="number", name="paySumMin")
								| -
								input.form-control.paySumMax(type="number", name="paySumMax")
						.form-group
							label 订单状态：
							each status in BASE_CONFIG.orderStatus
									label
										input.status(type="checkbox", value="#{status}", name="status")
										| #{status}
		nav
			ul.pager
				li.previous
					a(href="#")
						span &laquo;
				li
					span.page
				li.next
					a(href="#")
						span &raquo;
		table.table.table-bordered.table-hover
			thead
				tr
					th 雇主
					th 服务员
					th 创建时间
					th 状态
					th 操作
			tbody.list
	script(type="text/javascript", src="/js/jquery-dateFormat.min.js")
	script(type="text/javascript", src="/js/system/order.js")
